package org.yylnb.openplatform.gateway.filter;

import com.netflix.zuul.ZuulFilter;
import com.netflix.zuul.exception.ZuulException;
import org.springframework.cloud.netflix.zuul.filters.support.FilterConstants;
import org.springframework.stereotype.Component;

/**
 * 这个过滤器是针对当前请求的服务来进行参数校验的,因为不同的服务也会有不同的参数的要求,有的服务会有必须传递的参数的要求
 * @author RainLin
 * @date 2020/7/24 - 18:06
 */
@Component
public class ServiceParamsFilter extends ZuulFilter {
    @Override
    public String filterType() {
        return FilterConstants.PRE_TYPE;
    }

    @Override
    public int filterOrder() {
        return 0;
    }

    @Override
    public boolean shouldFilter() {
        return false;
    }

    @Override
    public Object run() throws ZuulException {
        return null;
    }
}

